package com.hfzy.ihk.facade.freeswitchManage.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hfzy.ihk.common.facade.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.hfzy.ihk.facade.freeswitchManage.enums.*;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author czs
 * @since 2019-03-22
 */
@Data
@Accessors(chain = true)
public class Gateway implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 编号(定义一个规则（根据设备商-设备号-网关类型-线路数）)
     */
    private String num;

    /**
     * 机房
     */

    private ComputerRoomEnum computerRoom;

    /**
     * 机架
     */
    private String rack;

    /**
     * 设备商
     */
    private EquipmentEnum equipment;

    /**
     * sip帐号
     */
    private String sipUser;

    private String ip;

    private String port;

    /**
     * 手机卡VOIP网关，中继线VOIP网关
     */
    private GatewayTypeEnum type;

    /**
     * 通道数量
     */
    private Integer channelNum;

    /**
     * 卡槽数量
     */
    private Integer slotNum;

    /**
     * 插卡数
     */
    private Integer usingSlotNum;

    /**
     * 状态(启用，停用，挂起，废弃)
     */
    private GatewayStateEnum state;

    /**
     * 所属公司
     */
    private CompanyEnum belongCompany;

    /**
     * 所属部门
     */
    private String belongUnit;

    private Integer createUserId;

    private String createUserName;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer modUserId;

    private String modUserName;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modTime;

    private String remark;



}
